import com.bao.service.UserService;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * Created with IntelliJ IDEA.
 * User: bao
 * Date: 2020/05/28 14:19
 * Description:
 * Version: V1.0
 */
public class SpringTest2 {
    @Test
    public void test1(){
        ApplicationContext ac=new ClassPathXmlApplicationContext("spring-aop.xml");
        UserService userService=ac.getBean("userService",UserService.class);
        userService.selectUser();
    }
}
